# -*- coding: utf-8 -*-
# Zope imports
import zope.component
from random import randint
from zope.interface import implements
from Acquisition import aq_inner
from zope.component import getMultiAdapter

# Plone, Five imports
from Products.CMFPlone.utils import getToolByName, base_hasattr
from Products.Five import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.CMFCore.utils import getToolByName
# Product imports

class EntidadA(BrowserView):

    template = ViewPageTemplateFile('entidadA.pt')

    def __call__(self):
#        folder.ATFolder.initializeArchetype(self, **kwargs)
#        self.invokeFactory("Folder", "folder1")
        return self.template()

    def isBanner(self):
        items = self.context.contentItems()
        if 'banner' in items:
            return 1
        else:
            return None


